package com.zenith.storage.po.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zenith.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 业务文件关联实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sto_biz_file")
@Schema(name = "业务文件关联实体类", description = "业务文件关联实体类")
public class StorageBizFile extends BaseEntity {
    /**
     * 文件ID
     */
    @Schema(description = "文件ID")
    private Long fileId;

    /**
     * 如 article/avatar/contract/course
     */
    @Schema(description = "如 article/avatar/contract/course")
    private String bizType;

    /**
     * 业务主键
     */
    @Schema(description = "业务主键")
    private String bizId;

    /**
     * 图片-封面/内容，合同-原件/扫描件
     */
    @Schema(description = "图片-封面/内容，合同-原件/扫描件")
    private String usageType;

    /**
     * 排序权重
     */
    @Schema(description = "排序权重")
    private Integer sortOrder;

    /**
     * 扩展信息（JSON）
     */
    @Schema(description = "扩展信息（JSON）")
    private String extJson;
}